#ifndef WXSSTORINGSPLITTERWINDOW_H
#define WXSSTORINGSPLITTERWINDOW_H

#include <wx/panel.h>
#include <wx/splitter.h>
#include <wx/event.h>


class wxsStoringSplitterWindow : public wxPanel {
  public:


    wxsStoringSplitterWindow( wxWindow* Parent );


    void Split( wxWindow* Top, wxWindow* Bottom, int SashPosition = 0 );


    inline wxSplitterWindow* GetSplitter() { return Splitter; }

  private:

    void OnSize( wxSizeEvent& event );
    void OnSplitterDClick( wxSplitterEvent& event );
    void OnSplitterChanging( wxSplitterEvent& event );
    void OnSplitterChanged( wxSplitterEvent& event );

    int SplitterFixup( int ProposedPosition );

    wxSplitterWindow* Splitter;
    int SplitPosition;
    DECLARE_EVENT_TABLE()
};

#endif
